SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}

  # Exclude try_compile sources from coverage results:
  "/CMakeFiles/CMakeTmp/"

  # Exclude files from the Testing directories
  ".*/Testing/.*"
 
  ".*/CMakeExternals/.*"
  )

# The following tests should not be run under valgrind
SET(CTEST_CUSTOM_MEMCHECK_IGNORE
  
  )

SET(CTEST_CUSTOM_ERROR_MATCH
  ${CTEST_CUSTOM_ERROR_MATCH}
  "CMake Error[ :]"
  )

SET(CTEST_CUSTOM_WARNING_MATCH
  ${CTEST_CUSTOM_WARNING_MATCH}
  "CMake Warning[ :]"
  )

SET(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}

  # Suppressing warnings about duplicate libraries in Darwin
  # At some point this may be addressed by CMake feature request: 
  # http://public.kitware.com/Bug/view.php?id=10179
  "ld: warning: duplicate dylib.*"

  # Visual studio spurious warnings...
  "The following environment variables were not found"

  # External projects not using $(MAKE) properly 
  "warning: jobserver unavailable: using -j1.  Add `+' to parent make rule."
  )
